//
//  secondTableViewCell.m
//  xiaoyiNew
//
//  Created by 讯一 on 16/12/27.
//  Copyright © 2016年 讯一. All rights reserved.
//

#import "secondTableViewCell.h"

#import "twotitle.h"

@interface secondTableViewCell ()

@property(nonatomic) twotitle *btn;

@end
@implementation secondTableViewCell


- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self tosetui];
    }
    return self;
}
- (void)tosetui{
    
     NSArray * nameArr = @[@"动态",@"关注",@"粉丝",@"人气",@"撒豆"];
     
     NSArray * imgArr = @[@"859",@"537",@"396",@"213",@"23"];
     
     twotitle * btn = [[twotitle alloc] initWithFrame:CGRectMake(0, 0, Screen_Width, self.frame.size.height) WithDataArray:nameArr WithImageArray:imgArr];
     
     //    btn.backgroundColor = [UIColor cyanColor];
     
     [btn blockReturnSelectedBtn:^(NSInteger index) {
     
     NSLog(@"---- %ld --------",index);
     }];
     
     [self.contentView addSubview:btn];
    
    
}
- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
